Imports MySql.Data.MySqlClient
Public Class Connection
    Dim db As MySqlConnection
    Dim rs As MySqlCommand
    Public Sub Conect()
        Try
            db = New MySqlConnection("Server=localhost;Database=coiffeur;Uid=root;Pwd='';")
            db.Open()
        Catch ex As Exception
            MsgBox(Err.Description)
        End Try
        
    End Sub

    Public Sub Closeconect()
        db.Close()
    End Sub

End Class
